There are three key classes exposed in the interface:
- PosGatewayInterface—Handles the interface and communication details with the Portico server.
- PosRequest—Object representation of the XML Heartland Portico Gateway request document.
- PosResponse—Object representation of the XML Heartland Portico Gateway response document.
The key steps involved when issuing a transaction to Portico are as follows:
- Build a PosRequest message object.
- Instantiate a PosGatewayInterface object.
- Invoke the DoTransaction() method of the PosGatewayInterface object.
- Interrogate the PosResponse message object.
The PosRequest and PosResponse classes are based on the PosGateway schema. Referring to this schema helps you to understand the layout of the PosRequest and PosResponse classes. All transactions described in this document conform to the schema.